package cn.hxth.cloud.consumer.controller;

import cn.hxth.cloud.service.service.ProductionService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/pages/production/")
public class ProductionController {
    private Logger logger = LoggerFactory.getLogger(ProductionController.class) ;
    @Resource
    private ProductionService productionService ;
    @PutMapping("startProducing")
    public Boolean startProducing( Long id){
        return  this.productionService.startProducing(id) ;
    }
    @PutMapping("doNext")
    public Boolean doNext( Long id){
        return  this.productionService.doNext(id) ;
    }
}
